import request from '@/utils/request'

// 查询人力资源-合同或协议列表
export function listHrBaseContract(query) {
  return request({
    url: '/contract/hrBaseContract/list',
    method: 'get',
    params: query
  })
}

// 查询人力资源-合同或协议详细
export function getHrBaseContract(id) {
  return request({
    url: '/contract/hrBaseContract/' + id,
    method: 'get'
  })
}

// 保存人力资源-合同或协议
export function saveHrBaseContract(data) {
  return request({
    url: '/contract/hrBaseContract/save',
    method: 'post',
    data: data
  })
}

// 删除人力资源-合同或协议
export function delHrBaseContract(id) {
  return request({
    url: '/contract/hrBaseContract/' + id,
    method: 'delete'
  })
}

// 导出人力资源-合同或协议
export function exportHrBaseContract(query) {
  return request({
    url: '/contract/hrBaseContract/export',
    method: 'get',
    params: query
  })
}
